package controls{
	import controls.TaskStatusChartNode;
	
	import flash.events.Event;

	public class TaskStatusChartEvent extends Event{
		
		public static const NODE_CLICK:String="nodeClick";
		public static const NODE_MOUSE_OVER:String="nodeMouseOver";
		public static const NODE_MOUSE_OUT:String="nodeMouseOut";
		
		public static const START_TASK:String = "startTask";
		public static const STOP_TASK:String = "stopTask";
		
		public static const START_TASK_MENU_CLICK:String = "startTaskMenuClick";
		public static const STOP_TASK_MENU_CLICK:String = "stopTaskMenuClick";

		private var _node:TaskStatusChartNode;
		
		public function TaskStatusChartEvent(type:String, theNode:TaskStatusChartNode=null, bubbles:Boolean=false, cancelable:Boolean=false){
			_node = theNode;
			super(type, bubbles, cancelable);
		}
		
		public function set node(theNode:TaskStatusChartNode):void{
			_node = theNode;
		}
		public function get node():TaskStatusChartNode{
			return _node;
		}
	}
}
